//
// Created by wkm on 2023-12-11.
//

#ifndef SYSTEMCTEST_MONITOR_H
#define SYSTEMCTEST_MONITOR_H

#include "systemc.h"

SC_MODULE(monitor) {
    sc_in<bool> m_a, m_b, m_cin, m_sum, m_cout;

    void prc_monitor();

    SC_CTOR(monitor) {
        SC_METHOD(prc_monitor);
        sensitive << m_a << m_b << m_cin << m_sum << m_cout;
//        sensitive << m_sum << m_cout; // 输出端口值发生改变时才打印这些值
    }
};

#endif //SYSTEMCTEST_MONITOR_H
